[ServiceContract(Namespace = "http://schemas.mycompany.com/", Name = "MyService")]
public interface IMyService
{
[OperationContract(Name = "MyOperation")
OperationResponse MyOperation(OperationRequest request);
}
In this scenario, what is the point of the Action and ReplyAction ?
Edit: I should clarify my question…
How would my wsdl differ if I don’t specify these parts? Won’t it just use some combination of the namespace, service name and opeartion name anyways?
You only need the Action / ReplyAction properties if you want to customize those values in the messages (and they’re reflected in the WSDL). If you don’t have them, the default is
<serviceContractNamespace> + <serviceContractName> + <operationName>for the Action, and<serviceContractNamespace> + <serviceContractName> + <operationName> + "Response"for ReplyAction.The code below prints out the Action/ReplyAction properties of all operations in the service.